#include "config.h"

GPIO_LED LED_1(1);     //IO10
GPIO_LED ScreenPower(5);
bool Fade_auto = 1;

void LED_Task(void*arg)
{
    printf("LED Task ok!\n");
    while(1){
        /*LED1*/
        if(Button1_flag){
            LED_1.LEDC_FadeUp();
            Button1_flag = 1;
        }
        if(!Button1_flag){
            LED_1.LEDC_FadeDown();
            Button1_flag = 0;
        }


        vTaskDelay(100 / portTICK_RATE_MS);
    }
}
